import { NbMenuItem } from '@nebular/theme';

export const MENU_ITEMS: NbMenuItem[] = [
  {
    title: '主页',
    icon: 'nb-e-commerce',
    link: 'index',
    home: true,
  },
  {
    title: '子系统',
    group: true,
  },
  {
    title: '子系统管理',
    icon: 'nb-grid-b',
    children:[
      {
        title: '子系统档案',
        link: 'mng/sys',
      },
      {
        title: '管理员档案',
        link: 'mng/adm'
      },
    ],
  },
  {
    title: '管理',
    group: true,
  },
  {
    title: '档案管理',
    icon: 'nb-layout-centre',
    children: [
      {
        title: '地区档案',
        link: 'doc/ld',
      },
      {
        title: '楼栋档案',
        link: 'doc/bd',
      },
      {
        title: '单元档案',
        link: 'doc/ud',
      },
      {
        title: '客户档案',
        link: 'doc/urd'
      },
    ],
  },
  {
    title: '表计管理',
    icon: 'nb-audio',
    children: [
      {
        title: '表计列表',
        link: 'doc/dl'
      },
      {
        title: '用电记录',
        link: 'history/ele'
      },
      {
        title: '水气热记录',
        link: 'history/other'
      },

      {
        title: '指令下发',
        link:'dev/ctrl'
      },
      {
        title: '操作日志',
        link: 'dev/log'
      }
    ],
  },
  {
    title: '账单管理',
    icon: 'nb-compose',
    children: [
      {
        title: '账单管理',
        link: 'doc/bl'
      },
      {
        title: '缴费记录',
        link: 'doc/br'
      },
      {
        title: '能源计价',
        link: 'doc/cost'
      },
      {
        title: '用户余额',
        link: 'doc/account'
      }
    ],
  },
];

export const USER_MENU_ITEMS: NbMenuItem[] = [
  {
    title: '主页',
    icon: 'nb-e-commerce',
    link: 'user/profile',
    home: true,
  },
  {
    title: '我的',
    icon: 'nb-star',
    children:[
      {
        title: '我的信息',
        link: 'usr/profile',
      },
      {
        title: '我的设备',
        link: 'usr/dev',
      },
      {
        title: '我的账单',
        link: 'usr/bill'
      }
    ],
  },
];
